<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>左中右三栏布局</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            
        }

        /* 使用float 实现 */
        .wrapper{
            box-sizing: border-box;
            height: 100vh;
            border: #5c6beb 2px solid;
            background-color: #5c6beb;
            overflow: hidden;
        }
        .left{
            float: left;
            height: 100%;
            width: 200px;
            background-color: rgb(201, 160, 160);
            border: #e9490a 2px solid;
        }
        /* 生成BFC，防止与左浮动的盒子重叠 */
        .center{
            /* margin-left: 206px; */
            height: 100%;
            background-color: rgb(141, 187, 141);
            border: #39c90d 2px solid;
            /* margin-right: 206px; */
            overflow: hidden;
        }
        .right{
            float: right;
            height: 100%;
            width: 200px;
            background-color: rgb(255, 0, 0);
            border: #ff0000 2px solid;
        }
        

        /* .wrapper{
            display: flex;
            height: 100vh;
            background-color: #ccc;
            border: #220ddb 2px solid;
            box-sizing: border-box;
        } */
        /* 侧边栏固定宽度为200px */
        /* .left{
            width: 200px;
            background-color: rgb(201, 160, 160);
        }
        .center{
            flex: 1;
            background-color: rgb(141, 187, 141);
        }
        .right{
            width: 200px;
            background-color: rgb(255, 0, 0);
        } */
    </style>
</head>
<body>
    <!-- <div class="wrapper">
        <div class="left">left</div>
        <div class="center">center</div>
        <div class="right">right</div>
    </div> -->

    <!-- 注意 标签顺序 -->
    <div class="wrapper">
        <div class="left">left</div>
        <div class="right">right</div>
        <div class="center">center</div>
    </div>
    
</body>
</html>